public class StringTest {
    static final String s1 = "Hello, world!";
    static final String s2 = "Xyzzy";

    public static void main(String[] args) {
	char [] table1;
	char [] table2;
	char [] table3;
	
	/* create a char table using native method */
	table1 = (char[]) s1.toCharArray();

	/* create a char table using iteration */
	table2 = new char[s2.length()];
	for (int i = 0; i < s2.length(); i++)
	    table2[i] = s2.charAt(i);

	/* make a new table containing s2 reversed */
	table3 = new char[s2.length()];
	for (int i = 0; i < s2.length(); i++) {
	    table3[s2.length()-i-1] = (char)table2[i];
	}

	/* jump to an eternal loop */
	loop();
    }

    void interrupt() {
    }

    static void loop() {
	for (;;) ;
    }
}
